<!DOCTYPE html>
<script>
    window.onload = function() {
        document.body.offsetTop;
        document.getElementById('elm').style.display = 'table-cell';
    }
</script>
<p>There should be a blue rectangle below.</p>
<table cellpadding="0" cellspacing="0">
    <tr>
        <td style="color:blue; background:blue;">AAAAAAAAAAAAAA</td>
    </tr>
    <tr>
        <td id="elm" style="display:table-row; color:blue; background:blue;">AAAAAAAAAAAAAA</td>
    </tr>
</table>
